import { request, config, ecityTable } from 'utils'

const { query } = ecityTable;
const { api } = config

const {
  projectAnalysis,
  projectIndicators,
  ECityMonitorMetas,
} = api

export function queryAnalysis(params) {
return request({ url:projectAnalysis, params })
}

export function queryIndicators(params) {
  return request({ url: projectIndicators, params })
}

export function queryStatistics(params) {
  const { payload: data, tablename } = params;
  return query({ url: ECityMonitorMetas, data }, tablename)
}

